package stack_queue;

import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;

/**
 * Created with IntelliJ IDEA.
 * Description: 栈和队列代码测试
 * User: 王圆豪
 * Date: 2024-08-17
 * Time: 16:41
 */
class t{
    public static void main1(String[] args) {

    }
}
public class Main {
    public static void main(String[] args) {
        Queue<Integer> queue = new LinkedList<>();
        System.out.println(queue.add(12));

    }
    public static void main1(String[] args) {
//        Stack stack1 = new Stack();
//        Stack<Integer> stack2 = new Stack<>();

        Stack<Integer> stack = new Stack<>();
        System.out.println(stack.push(99));
        stack.push(2);
        stack.push(3);


//        System.out.println(stack.search(6));


//        System.out.println(stack.empty());

//        System.out.println(stack.peek());

//        System.out.println(stack.pop());


//        stack.push(2);
//        System.out.println(stack.search(2));
    }
}
